﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="AddPicture.aspx.vb" Inherits="Haunted.AddPicture" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Share You Paranormal Picture</h2>
    <p>
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1AddPicturePage" AllowPaging="True" 
            AllowSorting="True">
            <Columns>
                <asp:ImageField DataImageUrlField="Picture" HeaderText="Picture">
                    <ControlStyle Height="400px" Width="600px" />
                </asp:ImageField>
                <asp:BoundField DataField="NameOfInvestigator" HeaderText="NameOfInvestigator" 
                    SortExpression="NameOfInvestigator" />
                <asp:BoundField DataField="Description" HeaderText="Description" 
                    SortExpression="Description" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1AddPicturePage" runat="server" 
            ConnectionString="<%$ ConnectionStrings:HauntedLocationString %>" 
            ProviderName="<%$ ConnectionStrings:HauntedLocationString.ProviderName %>" 
            SelectCommand="SELECT [NameOfInvestigator], [Picture], [Description] FROM [AddPicture]">
        </asp:SqlDataSource>
    </p>
    <p>
        <asp:FileUpload ID="file_picture" runat="server" />
    </p>
    <br />
    Investigator&nbsp;
    <asp:LoginName ID="ln_addpicture" runat="server" />
    <br />
    <br />
    Photo discription&nbsp;
    <asp:TextBox ID="tb_descript" runat="server"></asp:TextBox>
    <br />
    <br />
    <asp:Button ID="bt_addphoto" runat="server" Text="Button" />
    <br />
    <br />
    <br />
<div align='center'><a href='http://www.hit-counts.com'><img src='http://www.hit-counts.com/counter.php?t=MTI0NTQ4NQ==' border='0' alt='Add Picture Page Countrer'></a></div>
        </asp:Content>
